package com.onlineclassbackstage.beans;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel(description = "统一返回")
public class ResultObject implements Serializable {

    @ApiModelProperty(value = "状态")
    private int status;
    @ApiModelProperty(value = "返回错误信息")
    private String info;
    @ApiModelProperty(value = "返回数据")
    private Object data;

    public ResultObject() {
    }

    public ResultObject(int status, String info, Object data) {
        this.status = status;
        this.info = info;
        this.data = data;
    }
}
